// {"id":"4026116","name":"探险者黑胶防晒防雨遮阳伞户外钓鱼伞","desc":"防雨遮阳隔绝紫外线","price":"169.00","picture":"https://yanxuan-item.nosdn.127.net/66090c5de391e43e4516601e14870842.jpg","orderNum":7479}

import 'dart:convert';

import 'package:json_annotation/json_annotation.dart';

part 'good_info.g.dart';

@JsonSerializable()
class GoodInfo{
  String? id;
  String? name;
  String? desc;
  String? price;
  String? picture;
  int? orderNum;

  GoodInfo();

  factory GoodInfo.fromJson(Map<String, dynamic> json){
    return _$GoodInfoFromJson(json);
  }

  String toJson(){
    return json.encode(_$GoodInfoToJson(this));
  }

}